let chren = args.form;
for(let item of chren){
	let id = item.id;
	lib.dbQueryJsonArray(`SELECT
sw.rma_order_no as rmaOrderNo,
sw.wname,
sw.sname,
sw.tracking_no as trackingNo,
sw.sales_type as salesType,
sw.id as swid,
sw.status,
sw.has_prediction as hasPrediction,
sw.whname,
sw.store_name storeName,
swp.id as swpid,
swp.parent_sales_withdraw as parentSalesWithdraw,
swp.product_name as productName,
swp.img_url as imgUrl,
pd.name,
swp.sku,
swp.return_quantity as returnQuantity,
swp.receiving_quantity as receivingQuantity,
swp.available_quantity as availableQuantity,
swp.defective_quantity as defectiveQuantity,
swp.destroyed_quantity as destroyedQuantity,
swp.quantity,
swp.outbound_cost as outboundCost,
swp.available_wbin as availableWbin,
swp.defective_wbin as defectiveWbin
FROM sales_withdraw sw
LEFT JOIN sales_withdraw_product swp ON sw.id=swp.parent_sales_withdraw
LEFT JOIN product pd on pd.id=swp.product_name
WHERE sw.id=? and swp.del_flag=0`,id)
}